﻿using System;
using ProjScan.RecordManager;
using ProjScan.RecordManager.AssetData;
using ProjScan.ScanRule.Attr;
using ProjScan.Tools;

namespace ProjScan.ScanRule.ProjectAssets.Texture2D
{
	// Token: 0x020001BE RID: 446
	[TextureRuleAttr]
	internal class Texture_PureColor : RecordRuleImp<TextureAssetData, TextureRecordManager>
	{
		// Token: 0x06000E87 RID: 3719 RVA: 0x000072B5 File Offset: 0x000054B5
		public Texture_PureColor()
		{
			TextureAssetData.globalBool3 = true;
		}

		// Token: 0x06000E88 RID: 3720 RVA: 0x00042198 File Offset: 0x00040398
		protected override bool IsOK(TextureAssetData assetData)
		{
			return !assetData.isTexture2D || !ToolsHelper.IsAllSameColorAsCenter(assetData.textureColorArray, assetData.width, assetData.height);
		}
	}
}
